package StructuralModel.AdapterPattern;

/**
 * @author 王蕾 [wanglei_dev@cyou-inc.com]
 * @date 2017-12-11 12:50:00
 */
public class TranslatorAdapter extends PlayerTarget{

    private ForeignCenterAdaptee adaptee = new ForeignCenterAdaptee();

    public TranslatorAdapter(String name) {
        super(name);
    }

    @Override
    public void Attack() {
        adaptee.jingong();
    }

    @Override
    public void Defense() {
        adaptee.fangshou();
    }
}
